home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MIDIMOD2.ZIP / TEXTWIN.H < prev    next >
Text File  |  1993-06-26  |  1KB  |  51 lines

  1. /*
  2.  * TEXTWIN.H - Text-windowing system header
  3.  * (c)opyright Andrew Scott 1993
  4.  *
  5.  * Turbo C 2.0
  6.  *
  7.  * Author: Andrew Scott (Adrenalin Software)
  8.  *
  9.  * Date: 14/3/1993 ver 0.1
  10.  *       17/4/1993 ver 0.1a
  11.  */
  12.  
  13. extern void MainWindow(char *title, int n, ...);
  14. /* Post: Screen is set up with a nice title and n menus */
  15.  
  16. extern void SetMenu(int menu, int n, ...);
  17. /* Post: n commands has been set in menu #menu (0 = 1st) */
  18.  
  19. extern int Choice();
  20. /*
  21.  * Returns: a function reference number corresponding to a chosen command,
  22.  *   but returns -1 on an error.
  23.  */
  24.  
  25. extern int ScrollChoice(char *title, char **sp, int w);
  26. /*
  27.  * Returns: The offset of the string from s which is chosen, -1 on none
  28.  *    s points to the start of a list of strings, max length w, NULL term.
  29.  */
  30.  
  31. extern void ClearWin();
  32. /* Post: Area below command and title bars is clear */
  33.  
  34. extern void DrawBox(char **sp);
  35. /* Post: The NULL-terminated array of strings pointed to by sp is printed */
  36.  
  37. extern char InfoBox(char **sp);
  38. /*
  39.  * Returns: The key pressed after the NULL-terminated array of strings
  40.  *    pointed to by sp is printed.
  41.  */
  42.  
  43. extern char *DialogBox(char **sp, char *def);
  44. /*
  45.  * Returns: The string entered (or def if none entered), after printing
  46.  *    box filled with NULL-terminated strings sp.
  47.  */
  48.  
  49. extern void EndWindows();
  50. /* Post: Windows are freed up */
  51.